home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / hard / hack / i2clib40.lha / i2clib40 / Developer / ChangesV40 < prev    next >
Text File  |  1999-01-10  |  2KB  |  43 lines

  1.  
  2.  
  3. Changes from V39 to V40
  4. =======================
  5.  
  6.  
  7. Environment variable I2CDELAY
  8. -----------------------------
  9.  
  10. This is good news for developers.  No more need for each and every I2C
  11. client program to adjust the bus timing on startup.  The user does this
  12. once for the whole system and all I2C clients will run happily ever after.
  13.  
  14. However, existing V39 programs that call SetI2CDelay() and expect the user 
  15. to supply a suitable setting will still continue to work this way.  That's 
  16. sad, but simply disabling SetI2CDelay() in the new library was not an 
  17. option.  That would have put diagnostic programs (like I2CScan) out of
  18. action, too, which are essential for *finding* a suitable delay value in
  19. the first place.
  20.  
  21. Note that the V39 documentation was wrong in claiming that the default
  22. delay value of 0 (at that time) would be "okay in most cases, anyway".
  23. This is definitely not true for A1200, but I learnt that only
  24. recently. My apologies.
  25.  
  26.  
  27. Performance counters in I2C_Base
  28. --------------------------------
  29.  
  30. Fun.  Execute "I2CScan -w" while some other I2C client is running to see
  31. what they do.  (Source code for that program is supplied, too.)
  32.  
  33.  
  34. Interface type information in I2C_Base
  35. --------------------------------------
  36.  
  37. This might be useful to resolve the old dilemma "Need I call ShutDownI2C()
  38. before my program tries to print something?  After all, the I2C interface
  39. might or might not be connected to the printer port..."
  40.  
  41. For an example, take a look at I2Cscan.c, funtion "watcher()".
  42.  
  43.